<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>流量卡充值管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/recharge/rechargeLs/list">流量卡充值列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="rechargeLs" action="${ctx}/recharge/rechargeLs/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>流量卡编号：</label>
				<form:input path="iccid" htmlEscape="false" maxlength="48" class="input-medium"/>
			</li>
			<li><label>付款状态：</label>
				<form:select path="paystate" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('paystate')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>充值状态：</label>
				<form:select path="czstate" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('czstate')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>内部订单号：</label>
				<form:input path="nborderno" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>充值订单号：</label>
				<form:input path="czorderno" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>流水号：</label>
				<form:input path="lsno" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>充值时间：</label>
				<input name="orderstartdate"  type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${rechargeLs.orderstartdate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			</li>
			<li class="btns">
				<a id="btnSubmit" class="btn btn-primary" onclick="return page();"><i class="icon-search"></i>&nbsp;查询</a>
			</li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>流量卡编号</th>
				<th>代理商ID</th>
				<th>金额</th>
				<th>充值套餐</th>
				<th>付款状态 </th>
				<th>充值状态</th>
				<th>内部订单号</th>
				<th>充值订单号</th>
				<th>流水号</th>
				<th>充值时间</th>
				<th>付款时间</th>
			</tr>
		</thead>
		<tbody>
		<c:choose>
			<c:when test="${not empty page.list}">
				<c:forEach items="${page.list}" var="rechargeLs">
					<tr>
						<td>
							${rechargeLs.iccid}
						</a>
						</td>
						<td>
							${rechargeLs.agentId}
						</td>
						<td>
							${rechargeLs.money}
						</td>
						<td>
							${rechargeLs.rechargetc}
						</td>
						<td>
							${fns:getDictLabel(rechargeLs.paystate, 'paystate', '')}
						</td>
						<td>
							${fns:getDictLabel(rechargeLs.czstate, 'czstate', '')}
						</td>
						<td>
							${rechargeLs.nborderno}
						</td>
						<td>
							${rechargeLs.czorderno}
						</td>
						<td>
							${rechargeLs.lsno}
						</td>
						<td>
							<fmt:formatDate value="${rechargeLs.orderstartdate}" pattern="yyyy-MM-dd"/>
						</td>
						<td>
							${rechargeLs.paydate}
						</td>
					</tr>
				</c:forEach>
			</c:when>
			<c:otherwise>
				<tr>
					<td colspan="11" style="text-align: center;font-size:17px; font-family:SimHei">未查询到数据...</td>
				</tr>
			</c:otherwise>
			</c:choose>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>